<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>修改部门</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" href="style/default.css" type="text/css" />
	<script src="js/common.js"></script>
	<script>
	    function checkInfo(){
	       var chk1 = checkEmpty(document.getElementById("orgNo").value,'部门编号','tipNo')
	       var chk2 = checkEmpty(document.getElementById("orgName").value,'部门名称','tipName');
	       var chk3 = checkPhone(document.getElementById("orgPhone").value,'部门电话','tipPhone');
	       var chk4 = checkPhone(document.getElementById("orgFax").value,'部门传真','tipFax');
	       var chk5 = checkMaxLength(document.getElementById("orgRemark").value,'部门信息',125,'tipRemark');
	       return chk1&&chk2&&chk3&&chk4&&chk5;
	    }
	</script>

  </head>
  
  <body>&nbsp; 
  <br/>
  <form action="organization/org_updateOrg.action" method="post">
   <table class="add" align="center">
	         <tr align="center">
		        <th colspan="3">修改部门信息
		        <input type="hidden" name="orgId" value="<s:property value='#request.org.orgId'/>"/>
		        </th>
		     </tr>
			 <tr>
			    <td align="right" width="150">部门编号：</td>
				<td align="left" width="200"><input type="text" name="orgNo" id="orgNo" size="25" value="<s:property value='#request.org.orgNo'/>" readonly/> *</td>
				<td width="200" id="tipNo">&nbsp;</td>
			 </tr>
		     <tr>
			    <td align="right">部门名称：</td>
				<td align="left"><input type="text" name="orgName" id="orgName" size="25" value="<s:property value='#request.org.orgName'/>"/> *</td>
				<td id="tipName">&nbsp;</td>
			 </tr>
			 <tr>
			    <td align="right">部门电话：</td>
				<td align="left"><input type="text" name="orgPhone" id="orgPhone" size="25" value="<s:property value='#request.org.orgPhone'/>"/></td>
				<td id="tipPhone">&nbsp;</td>
			 </tr>
			 <tr>
			    <td align="right">部门传真：</td>
				<td align="left"><input type="text" name="orgFax" id="orgFax" size="25" value="<s:property value='#request.org.orgFax'/>"/></td>
				<td id="tipFax">&nbsp;</td>
			 </tr>
			 <tr>
			    <td align="right">部门信息：</td>
				<td align="left"><textarea name="orgRemark" id="orgRemark" cols="21"><s:property value="#request.org.orgRemark"/></textarea></td>
				<td id="tipRemark">&nbsp;</td>
			 </tr>
			 <tr>
			    <td align="center" colspan="3" height="35">
                    <input type="submit" class="btn" value="修改"  onclick="return checkInfo()"/>&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="reset" class="btn" value="取消"/>
                </td>
			 </tr>
    </table>
    </form>
  </body> 
</html>
